$(function() {
    $("#form").validate({
        rules : {
            "cprosecuted.id" : {
              
               digits : true,
            },
            "cprosecuted.cid" : {
            	 
               digits : true,
            },
            "cprosecuted.prosecutedreason" : {
               maxlength :127,
            },
            "cprosecuted.prosecutedcurrency" : {
               digits : true,
            },
            "cprosecuted.prosecutedamount" : {
            	 
               number : true,
            },
            "cprosecuted.prosecuteddate" : {
            },
            "cprosecuted.executionamount" : {
               number : true,
            },
            "cprosecuted.executiondate" : {
            },
            "cprosecuted.executionresults" : {
               maxlength :127,
            },
        },
    messages : {
        "cprosecuted.id" : {
            required : '请填写!',
               digits : '只允许填数字  !',
        },
        "cprosecuted.cid" : {
	       required : '请填写客户ID!',
               digits : '只允许填数字  !',
        },
        "cprosecuted.prosecutedreason" : {
               maxlength : '被起诉原因 长度超限,允许最大长度为127!',
        },
        "cprosecuted.prosecutedcurrency" : {
               digits : '被起诉币种只允许填数字  !',
        },
        "cprosecuted.prosecutedamount" : {
        	required : '请填写被起诉金额!',
               number : '被起诉金额输入的数字不合法  !',
        },
        "cprosecuted.prosecuteddate" : {
        },
        "cprosecuted.executionamount" : {
               number : '判决执行金额输入的数字不合法  !',
        },
        "cprosecuted.executiondate" : {
        },
        "cprosecuted.executionresults" : {
               maxlength : '判决执行结果 长度超限,允许最大长度为127!',
        },
       }
});
});
